package com.crm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.crm.entity.Contract;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;

@Mapper
public interface ContractMapper extends BaseMapper<Contract> {
    /**
     * 获取合同金额总和
     * @return
     */
    Double sumAmount(@Param("begin")LocalDateTime begin,@Param("end") LocalDateTime end);
}
